<template>
  <div>我是按钮2
    <FormUpdateFile v-model:value="fileName"></FormUpdateFile>
    <a @click="download()">{{ fileName }}</a>
    <FormDatePicker v-model:value="dateForm"></FormDatePicker>

    {{ dateForm }}
    <FormDatePicker v-model:value="dateWeek"
                    type="daterange"></FormDatePicker>
    {{ dateWeek }}
  </div>
</template>

<script lang="ts" setup>
// @ts-ignore
import {getCurrentInstance, onMounted, ref} from 'vue'
// @ts-ignore
const {proxy} = getCurrentInstance()
const fileName = ref('')
const dateForm = ref('');
const dateWeek = ref("2022-05-13~2022-11-23");

function download() {
  proxy.$http.download(null, {downloadName: 'tup.jpeg', filePath: fileName.value})
}
</script>

<style scoped>

</style>